﻿@model IEnumerable<AuditModel.CandidateQuota>

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/Admin/_EventSettingLayout.cshtml";
}

<h2>@AuditResources.CandidateQuota.ObjectName<text>设置</text></h2>

<p>
    @Html.RouteLink(AuditResources.UI.Create, "Default", new { controller = "CandidateQuota", action = "Create", id = ViewBag.AnnualEventId }, new { Class = "button" })
</p>
<div class="padding_panel">
<!--Import-->
@using (Html.BeginForm("Import", "CandidateQuota", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <text>批量导入：</text><input type="file" name="file" id="file1" /><input type="submit" value="@AuditResources.UI.Import" /><span class="error clear">@ViewBag.ImportError</span>
    @Html.RouteLink("下载导入文件模板", "Default", new { controller = "DownloadManager", action = "GetTemplateFile", filename = "quota_sample.xls" }, new { Class = "button" })
}
<!--Search-->
@using (Html.BeginForm("Index"))
{
    @AuditResources.Subject.ObjectName<text>:</text> @Html.DropDownList("SubjectId", AuditResources.UI.All) <text>&nbsp;</text>
    @AuditResources.County.ObjectName<text>:</text> @Html.DropDownList("CountyCode", AuditResources.UI.All) <text>&nbsp;</text>
     <input type="submit" value="@AuditResources.UI.Search" /> 
}
</div>
@Html.Partial("_CandidateQuotaGrid", Model)

<div class="padding_panel">
@Html.ActionLink("清空数据","DeleteAll", "CandidateQuota", new { id = ViewBag.AnnualEventID }, new { Class = "button" }) 
</div>